package questions.model;

/**
 * 
 * class: questions.model.Line
 * @author wxu
 * @since Sep 3, 2014
 */
public class Line {

	public double slope;
	public double delta;
	
	public Line(double s, double d){
		slope =s;
		delta = d;
	}
	
	public Line(int x1, int y1, int x2, int y2){
		slope =(double)(y2 - y1)/(double)(x2 - x1);
		delta = (double)(y2 * x1 - y1 * x2)/(double)(x1 - x2);
	}
}
